<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<p>调用对象属性，aaa.aaa1 和 aaa['aaa1'] 等价，但后面的更快，且能拼接字符串，灵活。</p>
		
		<h1>底层上是将 aaa.aaa1 转化为 aaa['aaa1']</h1>
		
		<h3>aaa['aaa1'] 中括号里是字符串，所以可以拼接</h3>
			
	</body>
</html>
<script type="text/javascript">
	
	// diaoyong duixiang 
	var aaa = {
		aaa1:{name:'aaa1'},
		aaa2:{name:'aaa2'},
		aaa3:{name:'aaa3'},
		aaa4:{name:'aaa4'},
		aaa5:{name:'aaa5'},
		
		bbb:function(i){
			return this['aaa' + i]
		}
	}
	console.log(aaa.aaa1.name)
	
	console.log(aaa.bbb(2).name)
	console.log(aaa['aaa1']['name'])
	
	
	
</script>